package com.burst.reptile.modular.zp.entity;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;

import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;

/**
 * <p>
 * 作者推荐
 * </p>
 *
 * @author wujin
 * @since 2020-06-16
 */
@Data
@EqualsAndHashCode(callSuper = false)
@TableName("zp_rec_author")
public class ZpRecAuthor implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 主键ID
     */
    @TableId(value = "rec_id", type = IdType.AUTO)
    private Integer recId;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 作者头像
     */
    private String avatar;

    /**
     * 作者昵称
     */
    private String nickName;

    /**
     * 个性标签
     */
    private String tag;

    /**
     * 排序号
     */
    private Integer recSort;

    /**
     * 创建时间
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createTime;
    
    /**
	 * 是否关注
	 */
	@TableField(exist = false)
	private Boolean mutual;

}
